//
// Created by A4-28 on 2020/10/15.
//
#include <assimp/Importer.hpp>
#include <assimp/scene.h>
#include <assimp/postprocess.h>
#include "mesh.h"

namespace WF {
    class Model {

    public:
        Model(const std::string &path);

        ~Model();

        std::vector<Mesh> meshes;
        std::string directory;
        bool gammaCorrection;
    private:
        void LoadModel(const std::string &path);

        void ProcessNode(aiNode *node, const aiScene *scene);

        //mesh 顶点数据
        Mesh ProcessMesh(aiMesh *mesh);

        //骨骼
        void ProcessBone(aiBone *bone);

    };
}


